package com.company;

import com.company.service.Graph;
import com.company.service.impl.graph.Circular;
import com.company.service.impl.graph.Triangle;

public class Task1 {
    public static void main(String[] args) {
        //todo 1. 求不同图形的周长
        //        Graph类包含一个求周长的抽象方法
        Graph graph = new Circular(10);
        graph.getPerimeter();


        Graph graph2 = new Triangle(2, 3, 4);
        graph2.getPerimeter();
    }
}
